package com.wbf.demo.mapper;

import com.wbf.demo.mobile.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author fal
 */
@Mapper
public interface UserMapper {

    @Select("select * from user where id = #{id}")
    User getUserInfo(int id);


    @Select("select * from user where username = #{username} and password = #{password} and is_delete = 0")
    User getUserByUsernamePassword(String username,String password);
}
